package com.wx.springboot.step9back.compenment;

import org.springframework.stereotype.Component;

@Component
public class ScheduledTask {

//    private static int count;

//    @Scheduled(cron = "0/2 * * ? * ?")
//    public void cron() {
//        int second = LocalDateTime.now().getSecond();
//        System.out.println("spring定时任务，第"+ (count++)+"次触发");
//        System.out.println("当前是第"+second+"秒");
//
//
//    }

}
